<template>
	<view class="content">
		<view class="inventory" v-for="(item,index) in list">
			<view class="inventory1">
				<text>{{item.title}}</text>
			</view>
			<view class="inventory2" >
				<text>操作来源：订单1527587715418267650购买</text>
			</view>
			<view class="inventory3" v-if="item.status==2">
				<text>减少库存1件</text>
				
			</view>
			<view class="inventory3_1"v-if="item.status==1">
				<text>扣减库存19件</text>
			</view>
			
			<view class="inventory4">
				<text>{{item.time}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						id:0,
						title:'产品名称',
						time:'2022-05-20 17:51:29',
						status:2
					},
					{
						id:1,
						title:'产品名称',
						time:'2022-05-20 17:51:29',
						status:1
					},
					{
						id:2,
						title:'产品名称',
						time:'2022-05-20 17:51:29',
						status:2
					},
					
				]
			}
		},
		methods: {


		}
	}
</script>

<style>
	.content {
		width: 750rpx;
		height: 1624rpx;
		background: #FAFAFA;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.inventory {
		width: 690rpx;
		height: 324rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(226, 226, 226, 0.2);
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		margin: 0 auto 32rpx;
	}
	.inventory1{
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		padding-top: 32rpx;
		margin-left: 32rpx;
	}
	.inventory2{
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin-left: 32rpx;
		margin-top: 32rpx;
	}
	.inventory3{
		width: 216rpx;
		height: 56rpx;
		background: #FFEEE7;
		box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(226,226,226,0.2);
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 24rpx;
		margin-left: 32rpx;
	}
	.inventory4{
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #666666;
		margin-top: 24rpx;
		margin-left: 32rpx;
	}
	.inventory3_1{
		width: 216rpx;
		height: 56rpx;
		background: #E7F4FF;
		box-shadow: 0rpx 8rpx 16rpx 0rpx rgba(226,226,226,0.2);
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 24rpx;
		margin-left: 32rpx;
	}
</style>